This can be useful to get more detailed information
about keyboard configuration.
return seat->wl_keyboard;
}
+/**
+ * gdk_wayland_device_get_xkb_keymap:
+ * @device: (type GdkWaylandDevice): a `GdkDevice`
+ *
+ * Returns the `xkb_keymap` of a `GdkDevice`.
+ *
+ * Returns: (transfer none): a `struct xkb_keymap`
+ *
+ * Since: 4.4
+ */
+struct xkb_keymap *
+gdk_wayland_device_get_xkb_keymap (GdkDevice *device)
+{
+ GdkWaylandSeat *seat = GDK_WAYLAND_SEAT (gdk_device_get_seat (device));
+ return _gdk_wayland_keymap_get_xkb_keymap (seat->keymap);
+}
+
GdkKeymap *
_gdk_wayland_device_get_keymap (GdkDevice *device)
{
struct wl_pointer *gdk_wayland_device_get_wl_pointer (GdkDevice *device);
GDK_AVAILABLE_IN_ALL
struct wl_keyboard *gdk_wayland_device_get_wl_keyboard (GdkDevice *device);
+GDK_AVAILABLE_IN_4_4
+struct xkb_keymap *gdk_wayland_device_get_xkb_keymap (GdkDevice *device);
GDK_AVAILABLE_IN_ALL
const char *gdk_wayland_device_get_node_path (GdkDevice *device);